package wcpackage.webapplication.view.admin;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.spring.injection.annot.SpringBean;
import wcpackage.service.UserService;
import wcpackage.webapplication.UserSession;
import wcpackage.webapplication.security.Secured;
import wcpackage.webapplication.view.BasePage;

/**
 * User: rabbit
 * Date: Jun 3, 2009
 * Time: 10:51:34 PM
 */
@Secured(accessRightsCode = "adminPage")
public class AdminPage extends BasePage {

    @SpringBean
    private UserService userService;

    public AdminPage() {
        add(new Label("helloAdmin","Hi " + UserSession.get().getUser().getLogin()));
    }
}